Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

253
Views
My react-simple-image-slider seams not working | ReactJS

Im having trouble with this Reactjs component. I have imported and installed the component, type in necessary code. But it appeared with a black slider Here is the code I imported:

import React from "react";
import "./Banner.css";
import SimpleImageSlider from "react-simple-image-slider";

const image = [
  { url: "./banner1.png" },
  { url: "./banner2.png" },
];

const Banner = () => {
  return (
    <>
      <SimpleImageSlider
        width={1920}
        height={1080}
        images={image}
        style={Banner.css}
        slideDuration={1}
        navStyle={1}
        showBullets
        Shownavs
      />
    </>
  )
}

export default Banner

Here is how it displayed

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

***Import like this it will work***
import image1 from './image1.jpg';
import image2 from './image2.jpg';
import image3 from './image3.jpg'

 const image = [
        { url: image1 }, 
        { url: image2 },
        { url: image3 }
    ];
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!